package com.sanjiahantang.youjiarole.module.me.order.beans;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiarole.base.BaseBean;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zy on 2017/10/29.
 */

public class OrderTakeResponseBean extends BaseBean {
    private String data;

    public ListData getData() {
        return new Gson().fromJson(data,ListData.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class ListData  extends BaseBean.ListBean{
        private List<Data> list;

        public List<Data> getList() {
            return list;
        }

        public void setList(List<Data> list) {
            this.list = list;
        }
    }



    public static class Data{

        private String address;
        private String apartmentName;
        private String phone;
        private String finishDate;
        private int id;
        private String userName;
        private String stateName;
        private int projectStateId;
        private int designStateId;
        private int supervisionStateId;
        private String projectRecommend;//是否推荐过设计师
        private String isCommitOrder;//是否提交过订单
        private String isDesignFree;
        private String contractPrice;
        private int isBidProject;
        private String isSubcontract;
        //subcontractPhone   subcontractName   subcontractRoleId   subcontractRoleName
        private String subcontractPhone;
        private String subcontractName;
        private String subcontractRoleId;
        private String subcontractRoleName;

        public String getSubcontractPhone() {
            return subcontractPhone;
        }

        public void setSubcontractPhone(String subcontractPhone) {
            this.subcontractPhone = subcontractPhone;
        }

        public String getSubcontractName() {
            return subcontractName;
        }

        public void setSubcontractName(String subcontractName) {
            this.subcontractName = subcontractName;
        }

        public String getSubcontractRoleId() {
            return subcontractRoleId;
        }

        public void setSubcontractRoleId(String subcontractRoleId) {
            this.subcontractRoleId = subcontractRoleId;
        }

        public String getSubcontractRoleName() {
            return subcontractRoleName;
        }

        public void setSubcontractRoleName(String subcontractRoleName) {
            this.subcontractRoleName = subcontractRoleName;
        }

        public String getIsSubcontract() {
            return isSubcontract;
        }

        public void setIsSubcontract(String isSubcontract) {
            this.isSubcontract = isSubcontract;
        }


        public int getIsBidProject() {
            return isBidProject;
        }

        public void setIsBidProject(int isBidProject) {
            this.isBidProject = isBidProject;
        }

        public String getIsCommitOrder() {
            return isCommitOrder;
        }

        public void setIsCommitOrder(String isCommitOrder) {
            this.isCommitOrder = isCommitOrder;
        }

        public String getIsDesignFree() {
            return isDesignFree;
        }

        public void setIsDesignFree(String isDesignFree) {
            this.isDesignFree = isDesignFree;
        }

        public String getContractPrice() {
            return contractPrice;
        }

        public void setContractPrice(String contractPrice) {
            this.contractPrice = contractPrice;
        }

        public int getProjectRecommend() {
            return TextUtils.isEmpty(projectRecommend) ? 0 : Integer.valueOf(projectRecommend);
        }

        public void setProjectRecommend(String projectRecommend) {
            this.projectRecommend = projectRecommend;
        }

        public int getDesignStateId() {
            return designStateId;
        }

        public void setDesignStateId(int designStateId) {
            this.designStateId = designStateId;
        }

        public int getSupervisionStateId() {
            return supervisionStateId;
        }

        public void setSupervisionStateId(int supervisionStateId) {
            this.supervisionStateId = supervisionStateId;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public int getProjectStateId() {
            return projectStateId;
        }

        public void setProjectStateId(int projectStateId) {
            this.projectStateId = projectStateId;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getApartmentName() {
            return apartmentName;
        }

        public void setApartmentName(String apartmentName) {
            this.apartmentName = apartmentName;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getFinishDate() {
            return finishDate;
        }

        public void setFinishDate(String finishDate) {
            this.finishDate = finishDate;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }
    }
}
